package com.cloudlead.plugin.security.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.plugin.security.entity.EScGroupHasUser;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QScGroupHasUser is a Querydsl query type for EScGroupHasUser
 */
@Label("组对应的用户查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QScGroupHasUser extends RelationalPathBase<EScGroupHasUser> {

    private static final long serialVersionUID = -1366447603;

    public static final QScGroupHasUser scGroupHasUser = new QScGroupHasUser("sc_group_has_user");

    public class PrimaryKeys {

        public final PrimaryKey<EScGroupHasUser> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.plugin.security.entity.EScGroup> scGroupHasUserScGroup1Fk = createForeignKey(scGroupId, "id");

        public final ForeignKey<com.cloudlead.plugin.security.entity.EScUser> scGroupHasUserScUser1Fk = createForeignKey(scUserId, "id");

    }

    public final StringPath id = createString("id");

    public final StringPath scGroupId = createString("scGroupId");

    public final StringPath scUserId = createString("scUserId");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QScGroupHasUser(String variable) {
        super(EScGroupHasUser.class, forVariable(variable), "null", "sc_group_has_user");
        addMetadata();
    }

    public QScGroupHasUser(String variable, String schema, String table) {
        super(EScGroupHasUser.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QScGroupHasUser(Path<? extends EScGroupHasUser> path) {
        super(path.getType(), path.getMetadata(), "null", "sc_group_has_user");
        addMetadata();
    }

    public QScGroupHasUser(PathMetadata<?> metadata) {
        super(EScGroupHasUser.class, metadata, "null", "sc_group_has_user");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(scGroupId, ColumnMetadata.named("sc_group_id").withIndex(2).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(scUserId, ColumnMetadata.named("sc_user_id").withIndex(3).ofType(Types.CHAR).withSize(24).notNull());
    }

}

